home *** CD-ROM | disk | FTP | other *** search
- TK --- A Simple Token Parsing Filter for DOS 2.0
-
- (c) Copyright 1984 by Jim Mott
- 3710 Slopeview Drive
- Sunnyvale, CA 95148
- (408) 274-2620
-
- All rights reserved. Permission granted to use this software for
- personal, noncommercial purposes only.
-
- This program is designed to be a filter for DOS 2.0. It will
- tokenize its input and allow subsetting and/or single token per
- line output.
-
- The format of the command is:
-
- TK {/RJx | /LJx} {/0} {{/v} | {/v/v}}
-
- where /RJx means right justify all tokens to x positions
- /LJx means left justify all tokens to x positions
- In the two entries x must be in [1..15]
- /0 means output one token per line
- /v means select token v for output. You may select any
- number, up to 255, of tokens to output. Repeats are
- allowed and you may change the order of the input tokens
- on the output line.
-
- For example, to extract the list of users from a VM directory
- file and write a sorted list of them without passwords to the
- printer the following command line would be used.
-
- FIND "USER " < DIRECT.VM | TK/LJ8/2/4/5/6/7/8/9 | SORT > PRN
-
-
- For example, to find a list of all sub-directories of the current
- directory sorted by sub-directory name we would use the following
- command line:
-
- DIR | FIND "<DIR>" | TK/LJ8/1/3/4 | SORT | MORE
-
-
- For example, to generate a sorted list of all words used in a
- document with one word per line we could use the following
- command line:
-
- TK/RJ8/0 < FOOBAR.DOC | SORT | MORE
-
- --------------------------------------
- Downloaded from the IBMPC special interest area of CompuServe,
- uploaded to PCanada by Bob Leigh, PC1022.
-